/*
 * Copyright ©2021 su binglun(9085309@qq.com). All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 *---------------------------------------------------------------------
 *-                                                                   -
 *-           Website : http://phoenix.sunny360.cn/                   -
 *-                                                                   -
 *---------------------------------------------------------------------
 */
package cn.sunny360.core.service;

import cn.sunny360.core.common.PhResult;
import io.vertx.core.Promise;
import io.vertx.core.json.JsonObject;

import java.util.List;

public interface GroupService {
    GroupService getMemberList(Long groupId, Promise<List<JsonObject>> promise);
    GroupService updateGroupVersion(Long userId, Long groupId, Long version, Promise<PhResult> promise);
    GroupService getGroupLastVersion(Long userId, Long groupId, Promise<Long> promise);
    GroupService getGroupList(Long userId, Promise<List<JsonObject>> promise);
    GroupService createGroup(String groupName, Long createUserId, List<Long> memberList, Promise<PhResult> promise);
    GroupService applyJoinGroup(Long groupId, Long applyUserId, Long recommendUserId, String comment, Promise<PhResult> promise);
    GroupService addGroupMember(Long groupId, Long userId, String comment, Promise<PhResult> promise);
    GroupService approvedApply(Long applyId, Integer feedStatus, String feedComment, Promise<PhResult> promise);
    GroupService getApplyList(Long groupId, Promise<List<JsonObject>> promise);
    GroupService getOnlineMemberList(Long groupId, Promise<List<JsonObject>> promise);
}
